/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package common;

import java.util.HashMap;

/**
 *
 * @author Mateusz
 */
public class Codes {
    private static final HashMap<Integer, String> map = new HashMap<Integer, String>();
    static {
        map.put(0, "Hello");
        map.put(1, "Sending data");
        map.put(2, "Requesting log");
        map.put(3, "Goodbye");
        map.put(11, "New folder");
        map.put(12, "New file");
        map.put(13, "Back folder");
        map.put(14, "Test classpath");
        map.put(15, "End sending data");
        map.put(16, "Error - new folder");
        map.put(17, "Error - new file");
        map.put(18, "Error - clear folder");
        map.put(19, "OK");
        map.put(21, "Sending log");
        map.put(22, "Error - sending log");
        map.put(30, "Server busy");
    }
    public static String get(int code){
        return map.get(code);
    }
}
